<?php

    /*
        Important! Do not forget to run the script: "db_ratings.sql"
    */
	set_time_limit(200);
    include_once "include/constants.php";
    
    function delete_fake_users() {
        try {
            $conn = new PDO('mysql:host='.DB_SERVER.';dbname='.DB_NAME, DB_USER, DB_PASS);
            $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);    
             
            $stmt = $conn->prepare('delete from users where isreal = 0;');
            $stmt->execute();
        } catch(PDOException $e) {
            echo 'ERROR: ' . $e->getMessage();
        }
    }
    
    function delete_fake_ratings() {
        try {
            $conn = new PDO('mysql:host='.DB_SERVER.';dbname='.DB_NAME, DB_USER, DB_PASS);
            $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);    
             
            $stmt = $conn->prepare('delete from user_ratings where userid not in
                                    (select id from users where isreal = 1);');
            $stmt->execute();
        } catch(PDOException $e) {
            echo 'ERROR: ' . $e->getMessage();
        }
    }
    
    function create_user($email, $gender) {
        try {
            $conn = new PDO('mysql:host='.DB_SERVER.';dbname='.DB_NAME, DB_USER, DB_PASS);
            $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);    
             
            $stmt = $conn->prepare('insert into users (email, firstname, lastname, timestamp, gender, userlevel, isreal)
                                    values (:email, "Fake", "Fake", 0, :gender, 1, 0);');
            $stmt->execute(array("email" => $email, "gender" => $gender));

            return $conn->lastInsertId(); 
            
        } catch(PDOException $e) {
            echo 'ERROR: ' . $e->getMessage();
        }
    }
    
    function add_user_rating($userid, $movieid, $rating) {
        try {
            $conn = new PDO('mysql:host='.DB_SERVER.';dbname='.DB_NAME, DB_USER, DB_PASS);
            $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);    
             
            $stmt = $conn->prepare('insert into user_ratings (userid, movieid, rating)
                                    values (:userid, :movieid, :rating);');
            $stmt->execute(array("userid" => $userid, "movieid" => $movieid, "rating" => $rating));
            
        } catch(PDOException $e) {
            echo 'ERROR: ' . $e->getMessage();
        }
    }

    $data = array(
        array(1,"fake000@fake.com","7,9,7,7,7,8,9,9,7,8","2050065,2003784"),
        array(0,"fake001@fake.com","7,7,7,9,9,9,9,7,7,9","2050065,1373977,1608862,1917681,2073194,2058546,2055525,1761481,1569451,1358667"),
        array(1,"fake002@fake.com","8,9,8,8,7,8,8,9,8,8","2050065,1880676,2028575,1590551,1608862,2050717,1697461,1583290,2027291,1796256"),
        array(0,"fake003@fake.com","8,7,9,8,8,9,8,7,9,9","2028575,2028578,2028581,1984576,1887447,1390609,1796256,1789794,2010605,1484028"),
        array(0,"fake004@fake.com","9,8,7,9,7,7,7,8,8,7","2032601,1608862,1416684,1527351,2079745,1936194,1864289,1795977,2135930,1396372"),
        array(1,"fake005@fake.com","7,7,9,7,7,8,7,9,8,7","1734297,1613014,2040806,1832037,1726080,1394556,1574110,1958148,1511952,1826064"),
        array(1,"fake006@fake.com","8,8,8,9,9,9,7,7,7,7","1590551,2032601,1880676,1608862,2060067,2051259,1396201,1613014,2079745"),
        array(1,"fake007@fake.com","7,7,9,7,9,7,7,9,9,7","1734297,1697462,1936740,1396372,2066311,1358681,1781316,1920832,2056165,1473737"),
        array(0,"fake008@fake.com","9,7,8,9,9,8,9,8,7,7","2050065,1919205,1452285,1363111,2040806,1925449,1757841,1590551,2042325,1669798"),
        array(1,"fake009@fake.com","8,8,7,8,9,7,7,8,8,8","1958727,1590551,1919205,1416684,2050717,1396201,2051259,2073194,1420145,1686461"),
        array(0,"fake010@fake.com","7,9,9,9,7,9,9,8,9,7","1880676,2032601,1939704,1984576,1666554,1697461,1406176,2009006,2037106,2140711"),
        array(1,"fake011@fake.com","8,8,7,7,8,9,9,8,7,8","2063803,1410379,1388708,1826064,2052367,1402617,2018631,2016907,2021171,1527366"),
        array(0,"fake012@fake.com","9,7,7,9,9,7,8,8,9,9","2050065,2003784,1880676,1581691,1665087,2028578,2032601,2050287,1665703,1442220"),
        array(0,"fake013@fake.com","9,9,8,8,9,9,7,8,7,8","2050065,2003784,1880676,1581691,2032601,2028578,1665087,1665703,1556410,1442220"),
        array(1,"fake014@fake.com","9,8,7,9,7,9,8,7,8,8","2028575,1880676,2032601,2028578,1782796,1395866,1416684,1763531,1734297,2003179"),
        array(0,"fake015@fake.com","9,7,9,7,7,9,7,9,8,9","1581691,2015140,1917681,1666554"),
        array(0,"fake016@fake.com","9,9,8,9,8,9,7,8,7,9","2050065,2015140,2028575,2028578,2032601,1958775,1984576,1538566,2087970,1442795"),
        array(1,"fake017@fake.com","9,9,7,8,9,9,8,8,7,7","2015140,2073194,1875158,1615572,1436442,1887600,1943846,1547794,1919205,1704264"),
        array(0,"fake018@fake.com","8,7,7,9,7,7,8,9,8,8","2032601,2003784,1608862,2028578,2028581,2028575,1666554,1751782,2135945,2136008"),
        array(1,"fake019@fake.com","9,9,8,9,9,9,8,7,9,7","2015140,1590551,2004939,1363111,1887600,1958148,2003179,2050717,2050065"),
        array(1,"fake020@fake.com","9,7,9,8,9,8,9,9,7,7","2050065,1581691,2032601,1782796,2060067,2050717,1864295,1538566,1734297,2028575"),
        array(0,"fake021@fake.com","9,7,9,7,8,7,9,9,7,9","2050972,2032332,1888572,2028581,1608862,1396201,2017736,2042707,1381241,2119936"),
        array(0,"fake022@fake.com","8,9,8,9,7,9,8,9,7,7","1590551,1452285,2016907,1527351,1917681,1921890,1416684,2050065,2073194,2027291"),
        array(0,"fake023@fake.com","9,8,9,7,7,8,7,8,7,9","2003784,2050065,1880676,1395866,1420145,2080729,1669745,2025125,1763531,1568877"),
        array(1,"fake024@fake.com","7,8,7,9,8,8,7,9,7,8","1880676,1590551,2015160,2050717,1480471,1993962,1887600,2063803,1410379,2005271"),
        array(0,"fake025@fake.com","8,8,9,7,9,9,8,9,8,8","1880676,1665087,1958727,1782796,2003784,1984576,1939704,1697461,1864295,2087970"),
        array(1,"fake026@fake.com","9,7,8,9,7,7,9,7,8,7","2042707,1581691,1452285,1420145,2027291,1795977,1473737,1669334,1996580"),
        array(1,"fake027@fake.com","7,8,8,9,9,8,8,7,8,9","1581691,2032601,1395866,1919205,1895909,2101131,1879910,1669745,1590551,2046964"),
        array(1,"fake028@fake.com","8,9,9,7,8,8,7,8,7,8","1581691,2032601,1395866,1919205,1895909,2101131,1879910,1669745,1590551,2046964"),
        array(0,"fake029@fake.com","9,9,7,7,8,7,9,7,7,8","2050065,2028575,2028578,2028581,1590551,2003784,1921890,1666554,2056165,1612343"),
        array(1,"fake030@fake.com","8,9,8,7,7,9,9,9,9,8","1395866,1396201,1581691,1650152,1795977,1758500,1705985,1679488,1928558,1532725"),
        array(1,"fake031@fake.com","7,7,8,7,9,8,8,8,7,7","2032601,1590551,1395866,1782796,2060067,2050717,1838289,2051259,1763531,1734297"),
        array(0,"fake032@fake.com","7,9,8,8,9,9,8,7,9,9","2032601,1665087,1395866,1608862,1921890,1420145,1958776,2058546,2027291,1613014"),
        array(1,"fake033@fake.com","9,7,8,8,9,9,8,9,7,8","1590551,1864289,2027291,1665460,1388708,1544899,1927634,1992189,1791698,2050065"),
        array(1,"fake034@fake.com","9,9,7,7,9,8,9,7,9,8","1880676,2032601,1887447,2016907,1697462,1936194,1625830,1625817,2063803,1473737"),
        array(0,"fake035@fake.com","8,8,8,8,8,9,9,8,7,7","2003784,1958775,1958620,1954731,1996018,1958770,1665460,2146972,2132727,2068348"),
        array(1,"fake036@fake.com","7,8,8,8,7,9,9,7,9,9","2050065,1590551,2028578,1782796,1917681,2042325,2073194,2115384,1420145,1895909"),
        array(1,"fake037@fake.com","7,8,9,9,7,9,8,8,8,7","2052367,1563266,1817086,1790976,1739624,1646298,2019867,1942969,1747941,1628722"),
        array(1,"fake038@fake.com","9,8,7,9,7,9,9,9,7,7","1880676,1581691,1568877,1946116,1993962,1796256,1643771,1550033,2042707,1767727"),
        array(1,"fake039@fake.com","7,9,7,7,9,8,7,7,7,8","1581691,1697461,2027291,1613014,1788725,1363111,1686461,1807317,1887600,1355708"),
        array(1,"fake040@fake.com","9,8,7,9,8,9,7,9,8,8","2050065,1420145,1954731,1807317,1646489,2003420,1654863,1705985,1406243,1390316"),
        array(1,"fake041@fake.com","8,8,9,7,7,7,7,9,9,7","2028575,2003784,2050065,2028578,1590551,2028581,1452285,2103039,2073194,1428871"),
        array(1,"fake042@fake.com","9,8,8,8,7,8,8,8,8,7","1889062,1654873,2008368,2052367,1615572,1875158,1544940,1997236,1765931,2005271"),
        array(1,"fake043@fake.com","9,9,7,7,9,9,8,9,7,8","1376395,2073194,2005271,1590551,1665087,1954731,1408570,1997758,1804375,2050065"),
        array(1,"fake044@fake.com","9,7,9,8,8,8,8,7,9,9","1590551,2073194,2079745,2027291,1613014,1469436,1977174,1887600,1468766,1958148"),
        array(1,"fake045@fake.com","9,7,7,9,8,7,9,9,8,8","1590551,2103039,1958776,2115384,1734297,1583290,2079745,1665703,2027291,2101131"),
        array(1,"fake046@fake.com","7,7,7,9,9,8,8,9,9,8","2028578,1917681,2021171,2101131,1686461,1469436,1625830,2005271,1780363,1826064"),
        array(1,"fake047@fake.com","8,9,8,7,9,7,7,7,8,7","1416684,2050717,2073194,1666554,2027291,1788725,1665087,2084970,1574110,1807317"),
        array(1,"fake048@fake.com","8,9,8,9,8,7,8,8,9,9","2016907,1734297,2027291,1577066,2079749,1686461,1795977,2023775,1662029,2005271"),
        array(0,"fake049@fake.com","7,8,8,7,8,8,9,9,9,8","1583290,2032601,1608862,1958776,2028581,1665087,2028575,1984576"),
        array(1,"fake050@fake.com","8,7,8,7,8,8,9,9,8,8","1368967,1541830,2042707,1864295,2032601,1580471"),
        array(1,"fake051@fake.com","8,7,9,9,8,8,8,7,7,9","1581691,2027291,1936194,1889776,1997758,2050972,1987543,1363111,1640579,1363712"),
        array(0,"fake052@fake.com","7,9,9,7,9,9,8,8,7,7","1581691,1880676,2050065,2028575,2028578,1665087,2028581,1395866,1590551,2060067"),
        array(1,"fake053@fake.com","8,7,8,8,8,8,7,7,7,8","1880676,2050065,1665087,1590551,1782796,1919205,2060067,2051259,2016907,2058546"),
        array(1,"fake054@fake.com","7,8,7,9,7,8,9,7,9,7","2060067,1665087,1763531,1734297,2051259,1568877,1538566,1556410,1925449,1643771"),
        array(0,"fake055@fake.com","9,7,9,9,7,8,9,8,8,7","1581691,2016907,1895909,1896110,1396201,1452285,1395866,2050065,1538566,1614657"),
        array(1,"fake056@fake.com","7,7,8,8,7,9,7,8,9,8","1581691,2028578,2032601,1416684,1590551,2028581,2028575,1734297,2115384,1925449"),
        array(1,"fake057@fake.com","7,7,7,9,7,8,7,9,8,8","1410379,1799854,2066311,1781275,1728850,2035807,1745603,1541433,1790976,1804350"),
        array(1,"fake058@fake.com","8,9,7,7,9,8,8,7,9,7","2050065,1880676,2028575,1416684,1583290,2027291,1889776,1410379,2005271,1453656"),
        array(0,"fake059@fake.com","7,8,7,7,9,7,9,7,7,8","1880676,1581691,1590551,1864295,1449527,1995038,1780290,1918572,2084970,1745600"),
        array(1,"fake060@fake.com","7,8,8,8,9,8,7,9,8,8","1581691,1734297,2087970,1613014,2050065,1601948,1568877,1478191,2058546,2032332"),
        array(1,"fake061@fake.com","8,9,8,8,9,7,7,7,8,7","1581691,2032601,1583290,2079745,1936194,1795977,2079747,2042707,1654863,2032332"),
        array(0,"fake062@fake.com","8,8,7,7,9,7,9,7,7,7","1880676,2028578,2028581,1782796,1480471,1946116"),
        array(0,"fake063@fake.com","8,8,9,9,9,9,8,8,9,7","2050065,2003784,1880676,1608862,1452285,1697461,1480471,2017736,1657190,1527351"),
        array(1,"fake064@fake.com","7,9,7,7,9,7,9,9,7,9","1590551,1919205,1416684,2015160,2050717,2051259,1864295,1763531,2073194,2016907"),
        array(1,"fake065@fake.com","9,8,8,9,8,8,8,9,9,8","1880676,1590551,1452285,1946116,2087970,2050065,1395866,1782796,1363111,1753334"),
        array(1,"fake066@fake.com","8,7,7,7,9,9,9,9,9,7","1880676,1581691,1395866,1763531,2025125,2027291,1993962,2124783,1439754,1449219"),
        array(1,"fake067@fake.com","9,8,8,9,9,7,8,8,7,8","1416684"),
        array(1,"fake068@fake.com","7,7,8,8,9,9,7,8,9,8","2028578,1416684,1864289,2088147,2073194,2020848,2104723,2057115,1960481,1625817"),
        array(0,"fake069@fake.com","8,8,8,7,7,9,7,8,8,9","1581691,1590551,1396201,1984576,1697461,1763531,1896110,1534002,1468627,1918465"),
        array(1,"fake070@fake.com","7,9,8,8,9,9,7,7,9,9","1590551,1581691,2050065,2016907,2051259,1613014,2040806,2051939,1726080,2004059"),
        array(0,"fake071@fake.com","9,7,9,8,8,8,8,9,8,8","2015140,1396201,2016907,1993962,2079745,1864289,2032605,1625830,1625825,1536166"),
        array(0,"fake072@fake.com","8,7,7,8,9,9,8,8,9,7","2050065,2015140,1665087,2032601,1395866,1416684,1921890,1832037"),
        array(1,"fake073@fake.com","7,8,7,7,7,8,9,9,9,7","2073194,2027291,2032608,1640579,1483331,1361180,1638217,1494758,2032332,2104935"),
        array(0,"fake074@fake.com","7,9,7,8,9,9,9,7,9,9","2003784,1665087,1608862,1946116,1920617,1699820,2042325,1981142,2004939,2135945"),
        array(0,"fake075@fake.com","9,8,8,8,8,7,8,8,8,9","1363111,2050065,2028581,1782796,2060067,1590551,1996018,2120805,1927555"),
        array(0,"fake076@fake.com","7,9,7,8,8,8,8,8,9,9","2050065,2003784,1452285,2028575,1608862,1359915,1613014,1920617,2115384,2101131"),
        array(1,"fake077@fake.com","9,9,7,7,8,9,9,9,9,9","2028578,1395866,1939704,2051259,1864295,1763531,2016907,2079745,2027291,1614657"),
        array(0,"fake078@fake.com","7,8,9,7,9,9,7,9,9,9","2003784,1590551,1665087,1426761,1864295,1666554,1527351,2042325,2051259"),
        array(1,"fake079@fake.com","8,7,8,7,9,7,7,9,9,7","2101131,2050972,1410379,1428871,1476206,1638217,1875158,2141212,2046964,2026462"),
        array(0,"fake080@fake.com","8,8,7,7,8,9,8,7,9,8","1583290,2079745,2017736,1936194,2115384,2032601,2079749,1795977,1832037,2079747"),
        array(1,"fake081@fake.com","9,8,7,7,9,9,9,9,7,7","1395866,1734297,2079745,1583290,2056168,1895909,2058546,1613014,1442220,1954731"),
        array(0,"fake082@fake.com","7,7,7,7,8,8,8,8,7,9","2050065,1880676,1581691,2032601,1395866,1984576,2021171,1388708,1748079"),
        array(1,"fake083@fake.com","9,9,8,9,9,9,9,9,8,7","2028578,1939704,1697461,2103039,1666554,1726080,2135945,2146972,1926558,2085208"),
        array(0,"fake084@fake.com","9,8,8,9,7,9,8,8,9,9","1581691,1880676,2003784,1984576,1697461,1946116,1390609,1936195,1864289,1617065"),
        array(0,"fake085@fake.com","8,9,9,8,7,7,8,9,9,9","1581691,1889776,2042707,1925449,1590551,2032601,1984576,2003784,1666554,1887447"),
        array(0,"fake086@fake.com","8,9,7,7,9,8,9,7,9,8","1581691,2032601,1782796,1958775,1984576,1538566,2079745,1420148,2077559,2087970"),
        array(1,"fake087@fake.com","7,7,7,7,8,7,9,7,8,9","1788725,1669745,1887600,1758500,1410379,1799854,1573314,1826064,1734297,2080729"),
        array(0,"fake088@fake.com","8,9,8,9,7,8,8,7,7,9","1895909,2079745,2032601,1608862,2050717,1396201,1939704,1697461,1359915,1538566"),
        array(0,"fake089@fake.com","8,7,8,8,9,8,8,9,7,7","1763531,1944622,2056168,1608862,2027291,2017736,2021171,1442220,1788725,1665087"),
        array(0,"fake090@fake.com","8,9,7,9,9,8,9,8,9,8","1917681,1697462,1614657,1686549,1468627,2027291,2003784,2028575,2032601,1608862"),
        array(0,"fake091@fake.com","9,7,7,8,8,7,9,8,7,9","2050065,2032601,1666554,1581691,2087970,1921890,1920617,2035173,1825912,1420145"),
        array(1,"fake092@fake.com","7,9,8,7,8,7,9,9,8,9","2035173,2096086,1799854,2088147,1545491,1640579,2104935,1912741,1612343,1731635"),
        array(0,"fake093@fake.com","7,8,7,8,9,9,7,9,8,8","1416684,1697461,1613014,1527366,2050065,1665087,2032601,1608862,2028578,1581691"),
        array(0,"fake094@fake.com","7,8,8,7,8,7,7,7,8,8","2050065,1581691,1590551,1420145,1763531,1993962,2037262,1545491,1954126,1651387"),
        array(1,"fake095@fake.com","7,8,8,9,9,7,7,9,7,9","1734297,2027291,1650152,1625817,1625828,2042707,2037040,1429640,2003784,2028578"),
        array(0,"fake096@fake.com","7,9,7,8,7,8,8,7,9,7","1527351,2032601,2028575,2028578,2028581,1608862,2050717,1984576,2056168,1390444"),
        array(0,"fake097@fake.com","8,8,9,8,8,8,7,8,9,7","1608862,2003784,1782796,2042325,1939704,1669745,1581691,1789794,2004939,2027291"),
        array(0,"fake098@fake.com","9,7,8,9,8,8,8,7,9,7","1783355,2032332,1952509,1515039,1663125,1434481,1796256,1946116,1753334,2010605"),
        array(0,"fake099@fake.com","9,9,9,9,9,7,9,9,8,9","2050065,2032601,1608862,1613014,1468766,1545491,1991133,1490371,1590551,1443216"),
        array(0,"fake100@fake.com","8,8,9,7,7,8,7,7,7,9","1581691,1880676,2032601,1416684,1782796,1396201,1568877,1697461,2058546,1946116"),
        array(1,"fake101@fake.com","7,9,9,9,8,8,8,7,8,9","1665087,2028578,2050065,1442795,1541507,1926558"),
        array(1,"fake102@fake.com","7,8,7,9,7,9,9,9,9,9","2028575,2028578,1665087,1864295,1697461,2073194,2003179,1933198,1625817,1997758"),
        array(0,"fake103@fake.com","7,7,9,8,8,9,8,7,9,7","1895909,1944622,1997758,1917816,2028578,1921890,2050717,1396201,1939704,1538566"),
        array(1,"fake104@fake.com","8,7,9,8,9,7,8,8,9,8","1581691,2028575,1590551,2032601,1426761,1734297,2128811,1625828,1665702,2056811"),
        array(0,"fake105@fake.com","7,8,9,9,8,8,9,8,7,8","1782796,1590551,1395866,1581691,1396201,1420145,2016907,1355708,2050065,1665087"),
        array(1,"fake106@fake.com","9,9,9,7,8,8,9,8,8,9","2073194,1939704,2028575,2028581,2028578,1984576,1864295,1763531,1583290,2056168"),
        array(0,"fake107@fake.com","7,9,8,7,9,7,7,8,7,9","2050065,1581691,1782796,1590551,1657190,1480471,1613014,1469436,1665087,2032601"),
        array(0,"fake108@fake.com","9,9,9,9,9,9,8,7,9,9","1581691,1958727,2042325,1420145,1697462,1996018,1880676,1665087,2003784,2050065"),
        array(0,"fake109@fake.com","9,9,8,8,7,7,9,7,8,9","2050065,1581691,2032601,2060067,1782796,1396201,1568877,2058546,1469436,1789794"),
        array(1,"fake110@fake.com","8,7,9,7,8,7,7,8,7,9","2050065,1880676,1581691,1396201,1420145,1666554,1796256,1550033,1396401,1605828"),
        array(0,"fake111@fake.com","7,9,7,7,7,7,8,9,9,8","1697461,1671070,1697462,1969377,2028575,2028581,2028578,1608862,2003784,1426761"),
        array(1,"fake112@fake.com","7,8,9,7,8,7,9,7,7,9","1581691,1583290,2073194,1832037,1697462,1363111,2084970,1997758,1783355,1408570"),
        array(0,"fake113@fake.com","7,7,7,9,9,9,7,7,9,9","2135945,1608862,1984576,1359915,2042325,1581691,1697461,1864295,2032601,2003784"),
        array(0,"fake114@fake.com","7,9,8,8,9,7,9,8,7,9","1880676,1925449,1643771,1387796,1995795,1993962"),
        array(0,"fake115@fake.com","8,9,9,9,8,8,9,9,9,7","1420145,1917681,2050065,2115384,2079745,1796256,2040806,1751782,1887447,1666554"),
        array(1,"fake116@fake.com","9,7,8,8,7,9,7,9,7,9","2051259,2073194,2050065,1665087,1608862,2042325,1697461,1666554,2115384,1416684"),
        array(0,"fake117@fake.com","7,9,9,9,7,8,9,7,9,8","2042325,1364581,1925449,1574529,1854815,2018631,1793416,1518845,1576412,1656844"),
        array(0,"fake118@fake.com","8,8,8,7,9,9,7,8,9,7","1751782,2084970,1996023,1396372,1799854,1640579,1763531,1946116,1996024,1996018"),
        array(0,"fake119@fake.com","7,9,7,9,7,8,8,7,9,7","2003784,2032601,1416684,1864295,1390444,1583290,2027291,1686549,1677788,2135930"),
        array(1,"fake120@fake.com","7,8,8,9,9,9,7,7,7,7","1359915,1734297,2073194,2051259,1613259,1416684,2028581,1590551,2015140,1880676"),
        array(0,"fake121@fake.com","7,8,9,9,9,7,7,9,8,8","2050065,2004939,1363111,2060067,2003784,2032601,2028578,1665087,2042707,2027291"),
        array(0,"fake122@fake.com","9,8,9,7,9,7,7,8,7,7","2050065,1581691,2032601,1665087,1782796,1763531,2016907,1977174,1359915,1936740"),
        array(1,"fake123@fake.com","9,7,9,7,8,9,7,8,8,8","1726080,2038811,1801816,1646489,2050717,1901888,2040806,1880765,1734297,1925449"),
        array(0,"fake124@fake.com","9,9,9,8,9,8,9,7,7,9","1363111,2016907,2050065,1880676,1581691,2032601,1590551,1396201,1666554,1896110"),
        array(0,"fake125@fake.com","7,8,8,9,7,9,8,7,9,7","2050065,1581691,1590551,1880676,1452285,1396201,1666554,1783355,2139124,1483276"),
        array(1,"fake126@fake.com","8,7,8,7,9,8,9,8,9,7","1416684,1442220"),
        array(1,"fake127@fake.com","8,9,9,7,9,7,7,9,9,9","1665087,2004939,1568877,1895909,2017736,1442220,1353879,1447325,1581691,1880676"),
        array(0,"fake128@fake.com","8,9,9,7,7,9,8,7,9,7","2103039,1536166,1477104,1669745,2136008,1920617,1388708,2048462,1866678,2022095"),
        array(0,"fake129@fake.com","8,9,9,9,7,9,8,8,8,7","2032601,1958955,1954731,2135930,2136008,1646489,1876053,2028575,1936194,2032605"),
        array(0,"fake130@fake.com","9,8,8,7,8,9,8,9,9,9","1838289,1835382,1918868,2108827,1978642,1963410,2050065,2003784,1939704,1666554"),
        array(1,"fake131@fake.com","8,9,9,8,7,9,8,8,8,7","2050065,2028578,1590551,1958727,1452285,2027291,1889776,1832037,2016907,1958776"),
        array(0,"fake132@fake.com","8,7,9,8,9,8,8,8,7,9","2003784,1608862,1416684,1581691,1590551,2032601,1406176,2081141,1665703,2101131"),
        array(0,"fake133@fake.com","8,9,7,9,7,7,7,7,7,8","2017736,1753334,1931806,1643771,1581691,2050065,1917681,1666554,2016907,1946116"),
        array(1,"fake134@fake.com","9,7,7,7,9,9,7,7,7,8","1416684,1480471,2016907,2073194,2042325,1590551,2056168,1665087,2003784,2051259"),
        array(1,"fake135@fake.com","9,7,8,9,7,9,9,9,7,7","1697461,2050717,1880676,1666554"),
        array(0,"fake136@fake.com","7,9,9,7,7,7,7,7,8,8","2050287,1420145,1887447,1782796,2060067,1921890,1568877,1527351,2056168,2032601"),
        array(0,"fake137@fake.com","8,9,7,7,8,9,7,8,7,8","1590551,1919205,1452285,1864295,1887447,1671070,1527366,2003784,1665087,2028581"),
        array(0,"fake138@fake.com","7,7,8,7,7,8,7,7,8,7","1452285,1734297,1977174,1933198,1996023,1755527,1884193,1812920,1442786,1812923"),
        array(1,"fake139@fake.com","7,8,9,8,8,8,7,7,8,7","2119692,1855947,1777902,1416684,1442220,1686461,1565212,2088147,1361180,1376395"),
        array(1,"fake140@fake.com","7,8,7,9,7,9,7,7,9,9","2010605,2136008,2050972,1999977,1581691,2028581,2028578,1864295,1946116,2027291"),
        array(0,"fake141@fake.com","8,9,8,9,8,7,9,7,8,7","2003784,1782796,1921890,1568877,1993962,1807317,1835382,1861548,1771609,1787279"),
        array(0,"fake142@fake.com","8,8,8,9,9,8,9,8,9,7","2032601,1671070,2135930,2084970,1954736,1954126,1640579,2032332,2003784,1665087"),
        array(1,"fake143@fake.com","7,9,7,8,7,7,7,8,7,8","2023775,2132727,1581691,1921890,1782796,1946116,1363111,1469436,1686461,1753334"),
        array(0,"fake144@fake.com","7,9,8,9,7,7,9,9,7,8","1880676,1581691,1665087,2032601,2050065,1946116,1895909,1494337,1643771,2042325"),
        array(1,"fake145@fake.com","7,8,9,9,7,9,9,7,7,8","1568877,2016907,1946116,1597134,1936194,2080729,2050065,1581691,1782796,1838289"),
        array(1,"fake146@fake.com","9,7,7,8,8,7,8,7,9,7","1665087,1876053,1901888,1999974,2110513,1665074,2042712,2042723"),
        array(0,"fake147@fake.com","9,8,8,9,8,9,8,8,8,8","1538566,1420145,1666554,1534002,2058546,1617065,1931806,1484028,2050065,1568877"),
        array(0,"fake148@fake.com","8,9,7,7,8,9,7,9,8,8","1753764,1986050,2026765,1698617,1665087,2042325,1795977,2022178,1832037,1705985"),
        array(0,"fake149@fake.com","7,8,7,9,8,7,7,9,7,9","2050065,1581691,2032601,1984576,1396201,1568877,1420145,1993962,2058546,1954731"),
        array(0,"fake150@fake.com","9,8,8,8,8,9,7,8,9,8","1954731,1936194,1363111,1864289,1625830,1625817,2115384,2079745,2027291,2021171"),
        array(1,"fake151@fake.com","8,9,8,9,8,7,9,8,8,9","1581691,1432340,2060067,1366717,2027630,2042707,1615572,1452622,1396201,1532725"),
        array(1,"fake152@fake.com","9,9,8,7,9,8,8,8,8,8","1590551,1608862,1921890,1666554,2073194,2016907,2081141,1442220,2037262,1550033"),
        array(1,"fake153@fake.com","8,9,9,9,8,7,8,9,7,7","1568877,1734297,1758500,2035173,2050065,1581691,2032601,1396201,2103039,1864295"),
        array(1,"fake154@fake.com","9,8,7,7,9,9,8,9,7,8","2050065,2028578,1396201,1568877,1697462,2058546,1795977,1643771,1887600,2042707"),
        array(1,"fake155@fake.com","8,9,7,7,7,9,9,9,8,9","2028575,1665087,2079745,2027291,1442220,1788725,1654863,1952509,2015140,1581691"),
        array(0,"fake156@fake.com","9,7,9,7,8,7,7,7,7,8","1476206,1697461,2079745,2079749,1590551,1866678,1887600,1390316,1972204,1621351"),
        array(1,"fake157@fake.com","8,9,7,8,9,7,8,9,8,7","2050065,1590551,1880676,1395866,2018631,1607692,1438850,2065838,1532725,1734297"),
        array(0,"fake158@fake.com","7,7,9,8,9,7,7,8,8,7","1864295,1697461,1420145,2027291,1954731,2117833,2028578,2032601,1608862,1452285"),
        array(0,"fake159@fake.com","7,9,9,8,9,9,9,7,7,8","2028581,2003784,1608862,1420145,1697462,2032605,2084970,1646489,2097355,1876053"),
        array(1,"fake160@fake.com","7,9,7,7,9,7,7,8,8,8","1782796,1581691,2015140,1880676,2050287,1480471,1364581,1568877,1763531,1879910"),
        array(1,"fake161@fake.com","7,9,7,8,7,9,9,7,8,9","1527351,2079745,2027291,1933198,2032601,1608862,1416684,1782796,1939704,2073194"),
        array(0,"fake162@fake.com","7,8,7,9,7,8,9,7,7,7","1581691,2032601,1665087,1984576,1420145,1697461,1952314,1574110,1608862,2073194"),
        array(0,"fake163@fake.com","8,7,8,8,7,8,9,9,9,7","1919205,1939704,2103039,1864295,1665460,1959318,2081146,1864291,1608862,1936740"),
        array(1,"fake164@fake.com","7,7,7,7,9,9,7,7,8,7","2079749,1686461,1590551,1665087,1581691,1919205,2115384,2058546,2087970,1442220"),
        array(0,"fake165@fake.com","7,7,8,8,8,9,8,9,8,8","2003784,1581691,2028575,1782796,1921890,2050717,2060067,2042325,1442220,1608862"),
        array(1,"fake166@fake.com","9,9,7,8,7,8,9,9,7,8","2058546,1613014,1442220,2101131,1363111,1801911,2050065,2051259,1568877,1666554"),
        array(0,"fake167@fake.com","9,7,9,9,8,7,9,7,8,8","2003784,2015140,2032601,2103039,1821555,1534002,1671070,1406176,1614657,1696673"),
        array(0,"fake168@fake.com","8,9,8,7,9,8,7,8,8,8","1581691"),
        array(1,"fake169@fake.com","8,8,7,8,7,9,7,9,8,9","2032601,1583290,1821555,1895909,1364581,2050287,2115384,1838289,2050717,1590551"),
        array(0,"fake170@fake.com","9,9,7,9,7,7,7,7,7,8","2058546,1973750,1895909,1608862,1864295,2042325,1581691,1395866,2003784,1480471"),
        array(0,"fake171@fake.com","8,9,9,8,9,7,9,8,7,7","1581691,1568877,1364581,2087970,1665460,1997758,1996023,1673422,1954733,2050065"),
        array(0,"fake172@fake.com","7,8,9,8,8,7,8,9,9,9","1416684,1359915,2079749,1864289,1864295,1864287,1864291,2081146,2081151,1420150"),
        array(1,"fake173@fake.com","9,9,7,7,9,8,8,8,7,7","2079745,2017736,1677788,1416684,1590551,1880676,1581691,1697461,2115384,1864295"),
        array(1,"fake174@fake.com","9,8,8,9,8,7,9,7,7,7","1796256,1751193,1925449,1550033,1926558,1748079,1763531,1958775,2028578,1666554"),
        array(0,"fake175@fake.com","8,8,9,7,8,8,8,9,7,9","1617065,1429744,1993803,1393084,1796256,1887447,2079745,1921890,1420145,1782796"),
        array(0,"fake176@fake.com","8,9,7,9,8,8,7,9,8,8","2025470,2087970,1396401,1880676,1581691,1590551,2032601,1608862,1782796,1396201"),
        array(1,"fake177@fake.com","8,7,7,7,9,9,8,8,7,9","2079745,1954731,1363111,1669745,1622989,1654863,1705985,1781316,2139124,1455645"),
        array(0,"fake178@fake.com","9,9,8,7,9,9,9,7,9,7","2027291,1753334,2146972,1388708,2032332,2050065,1581691,1936194,1782796,1946116"),
        array(1,"fake179@fake.com","8,8,9,8,7,8,8,8,8,7","1763531,1538566,1556410,1358091,2010605,2037040,1795510,1390655,1429640,1943749"),
        array(0,"fake180@fake.com","9,9,8,9,8,7,9,8,9,8","1880676,1838289,1699820,1396201,1753334,1751193,1946116,2027291,1662029,1581691"),
        array(1,"fake181@fake.com","9,8,7,7,8,7,8,7,7,9","2058546,2027291,1613014,1590551,1416684,1568877,2073194,2115384,1734297,2079745"),
        array(1,"fake182@fake.com","8,7,9,7,8,8,8,7,9,8","1416684,1936194,1799854,1361180,1875158,2043308,2073194,1826064,1804350,1775540"),
        array(0,"fake183@fake.com","8,8,8,8,8,7,8,8,7,7","1473737,1755527,1536166,2139124,2032332,1892349,1746542,2135930,1954736,1426757"),
        array(1,"fake184@fake.com","8,9,9,7,8,9,7,8,7,8","1622989,1590551,2028575,1416684,1480471,1895909,2027291,1936194,1997758,1574110"),
        array(0,"fake185@fake.com","7,7,8,7,9,9,8,9,7,8","2032601,2028581,2050717,2135936,1420150,1415919,2032332,2046291,1677788,1617065"),
        array(0,"fake186@fake.com","7,7,9,8,8,8,7,8,9,7","2103039,1838289,1538566,1896110,1628946,1880676,2003784,2032601,1984576,1396201"),
        array(0,"fake187@fake.com","8,9,9,9,7,8,7,9,7,8","2050065,1880676,1665087,1590551,1608862,1396201,1452285,2016907,1363111,1396372"),
        array(1,"fake188@fake.com","8,9,8,8,9,7,7,8,9,8","1984576,1396201,1864295,1763531,2079745,1686549,1646489,1581691"),
        array(0,"fake189@fake.com","8,9,8,9,8,8,7,7,9,9","2010605,1880676,2028575,2028581,2028578,1396201,2073194,2016907,2027291,1686549"),
        array(0,"fake190@fake.com","7,8,8,7,7,8,9,9,8,7","2028575,2050065,2032601,1665087,1416684,1452285,1396201,2028578,2028581,2060067"),
        array(0,"fake191@fake.com","8,7,7,9,9,9,9,7,9,9","1936740,2017736,1751782,2096086,1640579,1590551,2028581,1665087,2028578,2028575"),
        array(0,"fake192@fake.com","8,8,9,7,9,8,8,7,9,8","2003784,1939704,2146972,1761481,1667812,1920617,1892189,1358667,1581691,2115384"),
        array(1,"fake193@fake.com","7,7,7,9,9,8,7,8,7,9","1880676,1395866,1590551,2060067,1917681,1396201,1697461,1568877,2016907,2050065"),
        array(1,"fake194@fake.com","7,7,7,7,7,9,9,9,9,9","1473737,1654863,1749545,1954731,2079749,1864289,1795977,2079747,1625828,1936195"),
        array(1,"fake195@fake.com","9,9,8,9,9,7,8,9,9,9","1838289,2060067,2073194,2027291,2017736,1936194,2003179,1887600,1726080,1625817"),
        array(0,"fake196@fake.com","9,9,9,7,8,9,8,8,8,7","2015160,1581691,1921890,1887447,1763531,1527351,1665703,2050065,2015140,1880676"),
        array(1,"fake197@fake.com","8,9,7,9,7,9,8,9,7,9","1946116,2050065,1581691,1590551,1782796,2004939,1864295,1666554,1763531,1895909"),
        array(1,"fake198@fake.com","8,8,7,7,9,9,9,7,8,7","1395866,1665087,1782796,2028575,1396201,1895909,1936740,2027291,1442220,2042707"),
        array(0,"fake199@fake.com","8,8,8,7,7,7,8,9,9,8","1480471,1748079,1428871,1952509,1786560,1590551,1917681,1608862,1396201,1452285"),
        array(0,"fake200@fake.com","7,8,8,9,7,8,8,7,7,8","1590551,1917681,1608862,1396201,1452285,1480471,1748079,1428871,1952509,1786560"),
        array(1,"fake201@fake.com","7,9,8,9,7,7,9,9,8,9","1568877,1763531,1686461,1925449,2025470,2063803,1594545,1490371,2115384,2032601"),
        array(0,"fake202@fake.com","7,7,8,9,8,8,8,9,8,9","2042325,1538566,1895909,2050065,2003784,1880676,1590551,1665087,2032601,1939704"),
        array(0,"fake203@fake.com","7,8,7,9,9,8,7,7,8,8","2032601,1608862,2042325,1895909,1363111,2032605,1669745,1650203,2016907,2050065"),
        array(1,"fake204@fake.com","8,7,7,8,8,7,7,9,9,8","1697461,2016907,1946116,1944622,2079745,2017736,1677788,1416684,2032601,2073194"),
        array(0,"fake205@fake.com","8,8,7,8,7,7,9,8,7,8","2032601,1359915,1671070,1697462,2017736,1468627,1494337,1396401"),
        array(0,"fake206@fake.com","9,8,7,7,8,7,8,7,7,9","2084970,2015140,2028578,1608862,1590551,1437084,2050065"),
        array(1,"fake207@fake.com","9,9,9,8,8,7,7,7,9,8","2015160,1917681,1939704,1364581,1480471,1918465,1442220"),
        array(1,"fake208@fake.com","8,8,9,7,7,7,7,8,8,8","2004939,1734297,1480471,1946116,1889776,2050065,1880676,1917681"),
        array(0,"fake209@fake.com","8,7,9,7,7,9,7,7,8,9","1581691,1416684,1396201,2050717,2051259,1359915,1364581"),
        array(0,"fake210@fake.com","8,7,7,9,9,9,8,8,8,8","1665087,2028575,1939704,1600969,1705985,1388708,2015140,1880676,2028578,2028581"),
        array(1,"fake211@fake.com","8,7,8,9,8,9,9,7,7,8","2032601,2028575,2028581,2028578,1665087,2050065,1939704,1958776,2079745,1697462"),
        array(0,"fake212@fake.com","8,7,9,8,7,9,9,8,8,7","2050065,1581691,1902995,1396401,1359221,1527366,1420150,2097355,1415919,1442786"),
        array(1,"fake213@fake.com","9,7,8,7,7,9,9,7,9,7","1939704,1958776,2079745,1697462,2032601,2028575,2028581,2028578,1665087,2050065"),
        array(1,"fake214@fake.com","9,8,9,9,9,8,8,7,9,9","2032601,2028575,2028581,2028578,1665087,2050065,1939704,1958776,2079745,1697462"),
        array(1,"fake215@fake.com","9,8,9,9,9,9,8,7,9,9","1396201,1895909,1364581,1437175,1469436,2079749,1880676,1590551,2050065,1581691"),
        array(0,"fake216@fake.com","9,7,8,8,8,8,8,9,8,7","1534002,1480471,1581691,1880676,2032601,1608862,1917681,1697461,1538566,1821555"),
        array(1,"fake217@fake.com","8,7,8,7,8,7,8,8,9,7","2028575,2028578,1665087,1416684,1864295,2073194,2016907,2017736,1788725,1686549"),
        array(0,"fake218@fake.com","7,7,9,7,9,7,7,7,8,8","1697461,1936194,1796256,1748079,1963249,2063803,2050065,1590551,1452285,1864295"),
        array(1,"fake219@fake.com","7,7,9,9,9,8,7,8,7,8","1581691,2028575,2050065,2032601,2028578,2028581,1590551,1880676,1396201,1946116"),
        array(1,"fake220@fake.com","8,7,8,8,9,9,8,7,9,9","1590551,1581691,1919205,1864295,1763531,1420145,1734297,1583290,1468305,1442220"),
        array(1,"fake221@fake.com","9,7,7,9,7,9,9,9,9,7","2017736,1936194,1954731,1625830,1590551,1416684,2073194,1583290,2079745,2027291"),
        array(0,"fake222@fake.com","9,8,9,8,7,8,7,8,7,7","2050065,2003784,1880676,1581691,2032601,1665087,1608862,1917681,1396201,1763531"),
        array(1,"fake223@fake.com","7,7,9,9,9,8,7,8,7,8","1782796,1396201,1763531,2115384,1895909,1583290,1686461,1494337,2050065,1590551"),
        array(0,"fake224@fake.com","7,9,7,7,7,9,7,8,8,9","2017738,2017736,2073194,2027291,1889776,1363111"),
        array(0,"fake225@fake.com","9,7,9,8,7,8,9,7,7,8","1665087,2032601,2103039,1864295,1697461,2115384,2016907,1895909,1581691,1590551"),
        array(0,"fake226@fake.com","8,9,9,9,9,9,8,7,7,9","1996018,1887600,2028575,1416684,2016907,1583290,2079745,2101131,1363111,1686461"),
        array(0,"fake227@fake.com","9,8,9,9,8,7,9,7,7,9","1880676,2032601,1782796,1416684,1359915,1480471,1936740,2040806,1444474,1902995"),
        array(0,"fake228@fake.com","8,7,8,9,9,8,8,7,9,8","1828716,1880676,1896110,2135930,1782796,1437175,1993962"),
        array(0,"fake229@fake.com","8,7,7,8,8,7,9,7,8,9","2079745,1734297,2027291,1936194,2079749,1795977,1696673,2079747,1925449,2050972"),
        array(1,"fake230@fake.com","8,7,9,7,7,8,8,9,8,7","2058546,1442220,1788725,1363111,1669745,1726080,1997758,1396201,1568877,2016907"),
        array(1,"fake231@fake.com","9,7,9,7,7,8,7,7,7,7","1527366,2050065,1608862,1864295,2016907,1583290,1936740,2027291,1936194,1686549"),
        array(0,"fake232@fake.com","7,8,7,9,7,7,9,8,7,9","1665087,2028581,2028578,2032601,2003784,1939704,1613259,2103039,1538566,1390609"),
        array(0,"fake233@fake.com","7,8,7,8,8,9,9,7,9,8","2087970,1568877,1669745,1777902,1782796,1880676,1581691,2060067,1396201,1613014"),
        array(0,"fake234@fake.com","9,7,8,8,8,7,7,7,7,9","1880676,2015140,1590551,1763531,1697461,1364581,1734297,1568877,1467237,1996018"),
        array(0,"fake235@fake.com","8,9,9,9,7,8,8,8,7,8","2050065,1608862,1763531,1666554,1527351,1613014,1597134,1469436,1864289,1880676"),
        array(0,"fake236@fake.com","7,7,9,7,7,8,8,8,9,9","1522784,1731635,1995038,2050065,1590551,1608862,2016907,2079749,1771589,1515039"),
        array(0,"fake237@fake.com","8,9,8,9,9,8,8,9,9,8","2050065,1832037,1753334,2050972,1705985,1954126,2032332,1612343,1826064,1381241"),
        array(0,"fake238@fake.com","8,8,7,7,7,9,8,9,8,8","1984576,1896110,2050287,1364581,2042707,2025840,1664367,1921890,1880676,1452285"),
        array(0,"fake239@fake.com","7,8,8,7,7,8,8,8,9,7","2004939,1880676,1581691,2028575,2028578,2032601,2028581,1590551,1416684,1608862"),
        array(0,"fake240@fake.com","7,7,9,7,8,8,8,8,9,8","2050065,1880676,2015140,1581691,2032601,1919205,2056168,1958776,1763531,1395866"),
        array(1,"fake241@fake.com","9,9,9,9,7,9,8,8,7,7","1879910,1889776,1390444,2103039,1921890,1364581,2016907,2050065,1590551,2058546"),
        array(1,"fake242@fake.com","8,9,8,8,7,8,9,9,8,7","1581691,1468305,1686461,1669745,1933198,1758500,2120805,1930595,1612366,1545491"),
        array(1,"fake243@fake.com","8,8,9,8,7,8,9,7,8,7","1590551,1416684,1782796,1838289,1864295,1697461,1763531,2016907,1946116,1581691"),
        array(0,"fake244@fake.com","9,7,7,7,9,7,8,9,8,8","1952509,2017738,2017736,1590551,1666554,1697461,1895909,1697462,1643771,1987543"),
        array(0,"fake245@fake.com","8,7,7,9,7,7,7,8,9,9","2028575,2028578,2028581,1452285,1696673,1669745,1997758,1408570,1927555,1613014"),
        array(0,"fake246@fake.com","8,7,8,8,9,9,9,8,8,8","2004939,2042325,1763531,1895909,2056168,2017736,1996024,1590551,1782796,1921890"),
        array(0,"fake247@fake.com","9,9,9,8,9,7,7,7,7,7","2016907,2050065,2028575,1590551,2028581,2028578,1608862,2050717,1452285,2073194"),
        array(0,"fake248@fake.com","9,9,9,7,7,8,7,9,8,7","2003784,1590551,2016907,1936740,2027291,1936194,1889776,1864289,1997758,2135930"),
        array(1,"fake249@fake.com","7,9,7,8,9,9,8,9,7,8","1363111,1677788,1625828,2027291,2073194,1763531,2032601,1416684"),
        array(0,"fake250@fake.com","9,9,8,8,8,9,9,9,7,7","1497775,1581691,2032601,1390444,1917816"),
        array(1,"fake251@fake.com","7,7,8,8,9,7,8,8,9,7","2050065,1442220,1997758,2037262,1995038,1847158,2101131,2002033"),
        array(0,"fake252@fake.com","7,9,9,8,7,7,8,8,7,9","1590551,1919205,2004939,1568877,1895909,1946116,1469436,1753334,1902995,1755527"),
        array(1,"fake253@fake.com","9,7,7,7,9,7,8,9,7,9","1468627,2080729,1788725,1832037,1590551,1665087,2032601,1396201,1895909,1583290"),
        array(0,"fake254@fake.com","7,7,9,7,8,9,7,9,7,9","1581691,1452285,1939704,2103039,1763531,1895909,1364581,1753334,2032601,1880676"),
        array(1,"fake255@fake.com","8,9,7,8,9,8,7,8,9,8","2079749,2037262,1388708,1515039,2005271,1615572,2073194,2027291"),
        array(0,"fake256@fake.com","8,8,9,9,7,7,7,7,9,9","2050065,2032601,1452285,1763531,2016907,1614657,1665703,2087970"),
        array(0,"fake257@fake.com","7,8,8,9,8,9,9,7,9,8","1581691,2060067,1396201,1452285,1895909,1364581,2050287,1946116,2050065,1880676"),
        array(0,"fake258@fake.com","7,8,9,9,9,7,8,7,9,8","1697461,1452285,1880676,2032601,1665087,1416684,1832037,1864289,1697462,1753334"),
        array(1,"fake259@fake.com","7,7,7,7,7,8,8,7,7,8","1669745,1363111,1442220,1697462,1480471,1734297,1697461,1782796,1608862,2028578"),
        array(1,"fake260@fake.com","8,9,7,7,8,8,9,8,9,7","1607692,2127146,1442220,1581691,1782796,1665087,1936740,2060881"),
        array(0,"fake261@fake.com","9,7,9,9,7,7,8,8,7,8","2028575,2015140,2050065,2032601,2028578,1590551,1734297,1583290,1442220,1936194"),
        array(1,"fake262@fake.com","7,8,7,9,9,9,9,7,7,9","2032601,1880676,1581691,1665087,1946116,1583290"),
        array(1,"fake263@fake.com","7,8,8,8,9,8,9,7,8,7","1782796,1581691,1590551,2050287,1895909,1946116,1442220,2040806,1363111,2037262"),
        array(0,"fake264@fake.com","9,7,7,8,8,7,7,7,9,8","2032601,1887447,1958776,2115384,1538566,2027291,1954731,1958768,1880676,2028578"),
        array(1,"fake265@fake.com","8,9,8,8,8,7,7,7,9,8","2016907,1442220,2079745,2027291,2073194,1395866,1782796,1608862,1452285,2050717"),
        array(1,"fake266@fake.com","7,8,9,8,9,7,9,9,7,8","2028575,2028578,2028581,1590551,1608862,1426761,2016907,1583290,2027291,1556410"),
        array(1,"fake267@fake.com","8,8,8,7,9,9,9,7,8,9","1625830,1925449,2023775,2038811,1473737,1355708,1590551,1880676,1734297,1697462"),
        array(1,"fake268@fake.com","8,8,7,7,7,8,7,8,7,8","2050065,1880676,1416684,1838289,1782796,1763531,1568877,1864295,1734297,2058546"),
        array(1,"fake269@fake.com","7,8,8,7,9,8,9,9,9,9","1581691,1880676,2050065,1864295,1782796,1921890,1395866,1363111"),
        array(1,"fake270@fake.com","7,8,9,9,7,9,7,9,7,7","1473737,1856312,1921890,1895909,2017736,1650152,2010605,1997758,1783355,1654276"),
        array(0,"fake271@fake.com","7,9,8,8,7,7,8,7,7,9","2060067,1568877,1763531,1420145,1734297,2010605,1782796,1921890,2050717,1394556"),
        array(0,"fake272@fake.com","7,9,7,9,7,8,8,7,9,7","1896110,1993962,1796256,1933198,2050972,1410379,1880676,1590551,1420145,1568877"),
        array(0,"fake273@fake.com","9,9,8,9,8,9,8,8,8,9","2050065,1880676,1917681"),
        array(0,"fake274@fake.com","7,9,7,8,9,8,8,7,9,9","1396201,1590551,1993962,2050065,1753334,1748079,1960451,2053567,1788725,1946116"),
        array(1,"fake275@fake.com","8,9,8,9,7,8,8,9,7,8","1864295,2042325,2027291,2040806,1933198,2023775,1625817,1428871,1826064,1782853"),
        array(1,"fake276@fake.com","8,8,9,9,8,9,8,9,7,9","2079745,1614657,1613014,1788725,2079749,1795977,1958148,2050065,1590551,2073194")
    );
    
    delete_fake_ratings();
    delete_fake_users();
    
    for ($i = 0; $i < count($data); $i++) {
        $gender = $data[$i][0];
        $email = $data[$i][1];
        $ratings = explode(",", $data[$i][2]);
        $movies = explode(",", $data[$i][3]);
        $userid = create_user($email, $gender);
        
        for ($j = 0; $j < count($movies); $j++) {
            add_user_rating($userid, $movies[$j], $ratings[$j]);
        }
    }
    
    echo "Done.";

?>